function kx001_onlogin() {
	$.post(frontContextPath+'/trustmember/kaixinLogin.do',{},loginResult,"json");
}

function kx001_onlogout() {
	window.location.href = '/ecmall/logout.do?pathparam=http://'+location.host+window.location.pathname+location.search;
	return false; 
}

function loginResult(result){
	if(result == 'loginOK'){
		window.location.replace($("#pathparam").val());
	}
}